<?php
//返回上传文件地址
function imgshow_return($filename=''){
		if($filename==''){return false;}
		$list=include(UPDIR."/data/config.php");
		$filename=trim($filename,'.');
		return $list['upload_http'].$filename;
}
//写入数据到配置文件
function set_config($data) {
		$filename=UPDIR."/data/config.php";
		$return='<?php return '.var_export($data,true)." ?>";
		return file_put_contents($filename,$return);
}
?>
